import { Button, Message, Notification,Input,Slider } from "element-ui"

const comps = [
    Button,
    Input,
    Slider,
];

// 需要挂载在Vue.prototype上使用的组件
const prototypes = {
    message: Message,
    notify: Notification,
}

export function registerElement(Vue) {
    comps.forEach((comp) => {
        Vue.use(comp);
    });
    Object.keys(prototypes).forEach(key => {
        Vue.prototype[`$${key}`] = prototypes[key]
    })
}
